<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<script src="<%=basePath%>resources/js/common/plugin/bootstrap/js/bootstrap-validation.js"></script>


<title>新增/修改运政机构信息</title>

<style type="text/css"> 
.modal-table{width:100%;}
.modal-table tr{line-height:35px;}
.modal-table th{width:20%;text-align:right;padding-right:10px;font-weight: normal;}
.modal-table td{width:30%;}

.date-alarm-ul {
    border-bottom: 1px solid #ccc;
}
 .date-alarm .line,
 .date-alarm .line{
	bottom:0;
	left:0;
	width:100px;
	height:2px;
	background:#e77817;
	transition:all .3s;
	-webkit-transition:all .3s;
	-moz-transition:all .3s;
	-ms-transition:all .3s;
	-o-transition:all .3s;
}
.list {
    width: 100px;
    padding: 5px 0;
    text-align: center;
}
.fl {
    float: left;
}
textarea{
	margin-top:5px;
	border-style:none;
	border:1px solid #dedede;
}
input{
	padding-left:8px;
	padding-top:4px\9;
}
textarea{
	padding-top:4px\9;
}
/* .alertaddup {cursor:pointer; position:absolute; left:180px; top:0;} */
</style> 
<script type="text/javascript">
var action = '${action}';
var voname ='${vo.parent_orgn_name}';
var areaName ='${vo.area_name}';
var areaId ='${vo.area_id}';
</script>
</head>
<body>
<form id="vehicleForm">
			<div class="date-alarm pr">
       				<div class="line pa date-alarm" style="left: 0px;"></div>
       				<ul class="clearfix date-alarm-ul">
       					<li class="fl list"><a class="db" href="javascript:;">运政机构信息</a></li>
       				</ul>
       		</div>
			<div id="baseInfoDiv" class="pr" style='padding-top:15px'>
			<table class="modal-table">
<!-- 				<tr style="height: 20px;width:416px;"></tr> -->
				<tr>
				<th>组织机构编码：</th><td><input class='placeholder' type="text" style="height: 24px;width:208px;" id="orgnCode" name="orgnCode"  required="required"  placeholder="组织机构编码" value="${vo.orgnCode}" />
				<font style="color:#f00;margin-left:3px">*</font></td>
				<th>组织机构名称：</th><td><input class='placeholder' type="text" style="height: 24px;width:208px;"  id="orgnName"	name="orgnName" required="required"  placeholder="组织机构名称" value="${vo.orgnName}" />
				<font style="color:#f00;">*</font></td>
				</tr>
<!-- 				<tr style="height: 20px;width:416px;"></tr> -->
				<tr>
				<th>联系人：</th><td><input class='placeholder' type="text" style="height: 24px;width:208px;" id="contacts" name="contacts" required="required"  placeholder="联系人" value="${vo.contacts}" /><font style="color:#f00;margin-left:3px">*</font></td>
				<th>联系号码：</th><td><input class='placeholder' type="text" style="height:24px;width:208px;" id="contactsNumber"  name="contactsNumber"  required="required"  placeholder="联系电话" value="${vo.contactsNumber}" /><font style="color:#f00;margin-left:3px">*</font></td>
				</tr>
<!-- 				<tr style="height: 20px;width:416px;"></tr> -->
				<tr>
				<th>邮箱地址：</th><td><input class='placeholder' type="text" style="height: 24px;width:208px;" id="email"  name="email"  required="required"  placeholder="邮箱地址" value="${vo.contactsNumber}" /><font style="color:#f00;margin-left:3px">*</font></td>
				<th>联系地址：</th><td><input class='placeholder' type="text" style="height: 24px;width:208px;"  id="contactsAddress"  name="contactsAddress"  required="required"  placeholder="联系地址" value="${vo.contactsAddress}" /><font style="color:#f00;margin-left:3px">*</font></td>
				</tr>
<!-- 				<tr style="height: 20px;width:416px;"></tr> -->
				<tr>
				<th>隶属单位：</th><td><input type="text" style="height: 24px;width:208px;"  name="parent_orgn" id="workUnitId"   required="required"  placeholder="隶属单位" />
								   <input type="hidden" name="parentid" id="parentid" value="<c:if test="${empty vo.parentid}">0</c:if><c:if test="${!empty vo.parentid}">${vo.parentid}</c:if>" placeholder="父级ID" /></td>
				<th>所属区域：</th><td><input type="hidden"  id="area_name" name="area_name" value="${!empty vo.area_name?vo.area_name:''}"/><input  style="width:208px;text-align:center;" id ="area_id" name="area_id"  value="<c:if test="${!empty vo.area_id}">${vo.area_id}</c:if>" /><font style="color:#f00;margin-left:3px">*</font></td>
				</tr>
<!-- 				<tr style="height: 20px;width:416px;"></tr> -->
				<tr>
				<th>短信提醒：</th>
				<td>
				<select  style="width:60px;text-align:center;padding-left:4px" name="enable_sms" id ="enable_sms">
					<option value="0" ${vo.enable_sms==0?"selected='selected'":""}>停用</option>
					<option value="1" ${vo.enable_sms==1?"selected='selected'":""}>启用 </option>
				</select>
				</td>
				<th>邮箱提醒：</th><td><select  style="width:60px;text-align:center;padding-left:4px" name="enable_email" id ="enable_email"><option value="1" vo.enable_email==1?"selected='selected'":""} >启用 </option><option value="0" ${vo.enable_email==0?"selected='selected'":""}>停用</option></select></td>
				</tr>
<!-- 				<tr style="height: 20px;width:416px;"></tr> -->
				<tr>
				<th>备注：</th><td><textarea class='placeholder' style="height: 24px;width:208px;padding:3px;" name="memo" placeholder="备注信息" >${vo.memo}</textarea>
				</tr>
			</table>
			<c:if test="${!empty vo.fullid}"><input type="hidden"  name="fullid"  value="${vo.fullid}" /></c:if>
			<c:if test="${!empty vo.id}"><input type="hidden"  name="id"  value="${vo.id}" /></c:if>
			<div class="TerminalPanel pa">
				<a class="close pa" href="javascript:;" title="关闭"></a>
				<div class="menu_arrow pa"></div>
			</div>
			</div>
		</form>
	
		<script src="<%=basePath%>resources/js/business/base/organzation/addpuborganzation.js"></script>
</body>
</html>